/**
 * Copyright (C), 2015-2020, XXX有限公司
 * <p>
 * FileName: HrController
 * <p>
 * Author:   Brill
 * <p>
 * Date:     2020/2/16/016 15:23
 * <p>
 * Description:
 * <p>
 * History:
 *
 * <author>          <time>          <version>          <desc>
 * <p>
 * 作者姓名           修改时间           版本号              描述
 */


package cn.yuhh.controller;


import cn.yuhh.entity.Hr;
import cn.yuhh.service.HrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Brill
 * @create 2020/2/16/016
 * @since 1.0.0
 */

@Controller
@RequestMapping("hr")
public class HrController {

    @Autowired
    private HrService hrService;

    @GetMapping("hello")
    @ResponseBody
    public String hello() {
        return "hello";
    }

    @ResponseBody
    @GetMapping("queryById")
    public Hr queryById(@RequestParam(name = "id") Integer id){
        Hr hr = hrService.queryById(id);
        return hr;
    }


}
